import Admin from "@/views/Admin";
import NotFound from "@/views/NotFound";
import Chat from "@/components/Chat";
import Upload from "@/components/Upload";
import Repository from "@/components/Repository";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";

function index() {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Admin />}>
          <Route path="/chat" element={<Chat />} />
          <Route path="/upload" element={<Upload />} />
          <Route path="/repository" element={<Repository />} />
        </Route>
        <Route path="*" element={<NotFound />} />
      </Routes>
    </Router>
  );
}

export default index;
